package joyson.email.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @Author ke
 * @Date 2024/5/18 16:16
 */
@Mapper
public interface UserMapper extends BaseMapper {

    @Select("select id,name,email from [user] where birth_day >= #{startTime} and birth_day <= #{endTime}")
    List<Map<String, Object>> selectUser(@Param("startTime") String startTime, @Param("endTime") String endTime);
}
